/*
 * @Author: zehao.chen
 * @Date: 2022-07-10 11:03:30
 * @LastEditors: zehao.chen
 * @LastEditTime: 2022-07-30 18:35:16
 * @FilePath: /meeting-admin/src/service.js
 * @Description:
 *
 */
import http from '@/utils/request'
//  获取标签列表
export const getUserInfo = (data, config) => {
	return http.get('/sys/permission/user/list', {}, config)
}


/**
 * @description: 获取模板库
 * @return {*}
 */
export const getTemplateList = (data, config) => {
	return http.get('/pc/meeting/template/getTemplateList', {}, config)

}

/**
 * @description: 新建模板库
 * @return {*}
 */
 export const addTemplate = (data, config) => {
	return http.post('/pc/meeting/template/addTemplate', data, config)
}

/**
 * @description: 查询会议列表
 * @return {*}
 */

 export const meetingInfoList = (data, config) => {
	return http.post('/pc/meetingInfo/meetingInfoList', data, config)
}


/**
 * @description: 获取当前模板数据
 * @return {*}
 */
export const getTemplateInfo = (templateId, config) => {
	return http.get(`/pc/meeting/template/getTemplateInfo/${templateId}`, {}, config)
}

/**
 * @description: 删除座位子区域
 * @return {*}
 */
 export const updateDelFlagBySubIds = (subIds, config) => {
	return http.put(`/pc/meeting/template/updateDelFlagBySubIds/${subIds}`, {}, config)
}

/**
 * @description: 修改座位模板
 * @return {*}
 */
export const updateTemplate = (data, config) => {
	return http.put('/pc/meeting/template/updateTemplate', data, config)
}

/**
 * @description: 修改座位子区域
 * @return {*}
 */
export const updateDelFlagByAreaIds = (areaIds,data, config) => {
	return http.put(`/pc/meeting/template/updateDelFlagByAreaIds/${areaIds}`, data, config)
}

/**
 * @description: 修改座位区域
 * @return {*}
 */
 export const addArea = (data, config) => {
	return http.post('/pc/meeting/template/addArea', data, config)
}


/**
 * @description: 新增座位子区域
 * @return {*}
 */
 export const addAreaSub = (data, config) => {
	return http.post(`/pc/meeting/template/addAreaSub`, data, config)
}

// 获取客服二维码
export const getQrcode = (data, config) => {
  return http.get(`/system/user/getQrcode`, {params: data}, config)
}

// 判断是否授权
export const getIsAccess = (data, config) => {
  return http.post(`/authorization/authorizationcontroller/isCanAccess`, {}, config)
}

